using System.Collections;
using System.Collections.Generic;
using System.Reflection.Emit;
using UnityEngine;

/// <summary>
/// put together with enemy animator, to be called in anime event
/// </summary>
public class ZombieAnimCaller : MonoBehaviour
{
    Enemy enemy;
    private void Start() {
        enemy = GetComponentInParent<Enemy>();
    }


    public void ReadlyToAttack(){
        enemy.PauseSeek();
    }

    public void AttackFinished(){
        enemy.ResumeSeek();
    }

}
